//@author A0101906R
#include "CmdInvalid.h"
#include <stdlib.h>
using namespace Twentyfifth;
using namespace std;

const std::string CmdInvalid::FEEDBACK_INVALID = "Invalid command.\n";
const std::string CmdInvalid::ERROR_UNDOINVALID = "Previous command cannot be undone.\n";
//@author A0101906R
CmdInvalid::CmdInvalid() {
	cmdType = INVALID;
}
//@author A0101906R
Status CmdInvalid::execution() {
	Status invalidStatus;
	invalidStatus.code = Status::ERR_INVALID_COMMAND;
	invalidStatus.desc = FEEDBACK_INVALID;
	return invalidStatus;
}
//@author A0101906R
Status CmdInvalid::undo(Status::StatusCode c) {
	return Status(Status::ERR_OTHER, ERROR_UNDOINVALID);
}
